package com.custom.base.presenter

import android.app.Activity
import android.content.Context
import com.custom.base.presenter.view.BaseView
import com.trello.rxlifecycle3.LifecycleProvider

/*
    MVP中P层 基类
 */
open class BasePresenter<T : BaseView>(any_: Any) {

    var mView: T = any_ as T
    var activity: Activity = any_ as Activity
    var lifecycleProvider: LifecycleProvider<*> = any_ as LifecycleProvider<*>

    /*
        检查网络是否可用
     */
    fun checkNetWork(): Boolean {
        return false
    }


}
